package lapsnake.model.expr;

import lapsnake.model.*;
import lapsnake.model.data.*;
import lapsnake.model.data.OptionalChild;
import lapsnake.py.ast.ASTHelperFactory; import java.beans.PropertyVetoException;

import org.python.antlr.ast.*;

/**Wrapper class with helper functions for Yield nodes*/
public class LapYield extends LapExpression {
	public final OptionalChild<LapExpression> value = new OptionalChild<>(this, LapExpression.class);
	
	public LapYield(PyAST pyAST, ChildField<? super LapYield> parent, Yield node) throws PropertyVetoException {
		super(pyAST, parent, node);
		ASTHelperFactory.makeHelper(pyAST, value, node.getInternalValue());
		buildTextNodes(node);
	}
}
